var app = getApp()
console.log(app)
Component({
    properties: {
        hasLinkIcon: Boolean,
        child: Object,
        parent: Object
    },
    data: {
    },
    methods: {
        tapUser(e) {
            var index = e.currentTarget.dataset.index
            if (this.data.dataArr[index].hasData) {
                this.triggerEvent('tapUser', e.currentTarget.dataset.index)
            }
        },
        invite(e){
            var relation = e.currentTarget.dataset.relation
            this.triggerEvent('invite', relation)
        }
    }
})